<div style="border-bottom:0;padding-bottom:0;">
    <form id="gzfForm" method="post" action="">
        <!--表单相关原始信息存储-->
        <input type="hidden" name="old_name" value="{$gzf.name}" />
        <input type="hidden" name="old_idno" value="{$gzf.idno}" />
        <input type="hidden" name="old_phone" value="{$gzf.phone}" />
        <input type="hidden" name="old_tel" value="{$gzf.tel}" />
        <input type="hidden" name="old_gxincome" value="{$gzf.gxincome}" />
        <input type="hidden" name="old_ccincome" value="{$gzf.ccincome}" />
        <input type="hidden" name="old_income" value="{$gzf.income}" />
        <input type="hidden" name="old_gxincome2" value="{$gzf.gxincome2}" />
        <input type="hidden" name="old_ccincome2" value="{$gzf.ccincome2}" />
        <input type="hidden" name="old_income2" value="{$gzf.income2}" />
        <input type="hidden" name="old_remarks" value="{$gzf.remarks}" />
        <input type="hidden" name="old_marriage" value="{$gzf.marriage}" />
        <input type="hidden" name="old_gender" value="{$gzf.gender}" />
        <input type="hidden" name="old_company" value="{$gzf.company}" />
        <input type="hidden" name="old_pay_date1" value="{$gzf.pay_date1}" />
        <input type="hidden" name="old_pay_date2" value="{$gzf.pay_date2}" />
        <input type="hidden" name="old_work_date" value="{$gzf.work_date}" />
        <input type="hidden" name="old_applier_type" value="{$gzf.applier_type}" />
        <input type="hidden" name="old_resident_num" value="{$gzf.resident_num}" />
        <input type="hidden" name="old_coapply_num" value="{$gzf.coapply_num}" />
        <input type="hidden" name="old_pay_shebao" value="{$gzf.pay_shebao}" />
        <input type="hidden" name="old_house_state" value="{$gzf.house_state}" />
        <input type="hidden" name="old_work_state" value="{$gzf.work_state}" />
        <input type="hidden" name="old_area_id" value="{$gzf.area_id}" />
        <input type="hidden" name="old_community_id" value="{$gzf.community_id}" />
        <table class="form bzf-form">
            <tr>
                <th width="15%">姓名</th>
                <td width="35%" field="name">{$gzf.name}</td>
                <th width="15%">身份证</th>
                <td field="idno">{$gzf.idno}</td>
            </tr>
            <tr>
                <th>婚姻</th>
                <td field="marriage">{$gzf.marriage}</td>
                <th>性别</th>
                <td field="gender">{$gzf.gender}</td>
            </tr>
            <tr>
                <th>常住人口</th>
                <td field="resident_num">{$gzf.resident_num}</td>
                <th>共同申请人口</th>
                <td field="coapply_num">{$gzf.coapply_num}</td>
            </tr>
            <tr>
                <th>家庭移动电话</th>
                <td field="phone">{$gzf.phone}</td>
                <th>申请人类型</th>
                <td field="applier_type">{$gzf.applier_type}</td>
            </tr>
            <tr>
                <th>工作现状</th>
                <td field="work_state">{$gzf.work_state}</td>
                <th>住房</th>
                <td field="house_state">{$gzf.house_state}</td>
            </tr>
            <tr>
                <th>所在社区和党委口</th>
                <td field="area_id">{$area[$gzf[area_id]]}</td>
                <th>意向申请小区</th>
                <td field="community_id">{$community[$gzf[community_id]]}</td>
            </tr>
            <tr>
                <th>备注</th>
                <td field="remarks">{$gzf.remarks}</td>
            </tr>
        </table>
    </form>
</div>
<div class="sub-listview" style="height:285px;">
    <ul class="ui-tabs">
        <li class="selected" target="tabs-work">工作和收入</li>
        <li target="tabs-coapply">共同申请人信息</li>
        <li target="tabs-zj">相关电子证件</li>
        <li target="tabs-lhsp">联合审批记录</li>
        <li target="tabs-log">审批记录</li>
        <li target="tabs-history" style="display: none;">此人历史申请记录</li>
    </ul>
    <div class="tabs-item tabs-work">
        <table class="form" style="margin-left:20px;margin-top:10px;">
            <tr>
                <th width="14.5%">工作单位</th>
                <td width="35%" field="company">{$gzf.company}</td>
                <th width="14%">参加工作时间</th>
                <td field="work_date">{$gzf.work_date}</td>
            </tr>
            <tr>
                <th>工薪月收入</th>
                <td field="gxincome">{$gzf.gxincome}</td>
                <th>家庭工薪月收入</th>
                <td field="gxincome2">{$gzf.gxincome2}</td>
            </tr>
            <tr>
                <th>财产性月收入</th>
                <td field="ccincome">{$gzf.ccincome}</td>
                <th>家庭财产性月收入</th>
                <td field="ccincome2">{$gzf.ccincome2}</td>
            </tr>
            <tr>
                <th>共计月收入</th>
                <td field="income">{$gzf.income}</td>
                <th>家庭共计月收入</th>
                <td field="income2">{$gzf.income2}</td>
            </tr>
            <tr>
                <th>社保缴纳情况</th>
                <td field="pay_shebao">{$gzf.pay_shebao}</td>
                <th>社保缴纳年份</th>
                <td field="pay_date1">{$gzf.pay_date1|default='未缴纳'}</td>
            </tr>
            <tr>
                <th>社保缴纳月份</th>
                <td field="pay_date2">{$gzf.pay_date2|default='未缴纳'}</td>
            </tr>
        </table>
    </div>
    <div class="tabs-item tabs-coapply hidden">
        <table class="list" style="margin-top:10px;">
            <thead>
                <tr>
                    <th>姓名</th>
                    <th>关系</th>
                    <th>身份证号</th>
                    <th>移动电话</th>
                    <th>工作单位</th>
                    <th>婚姻状态</th>
                    <th>月收入（元）</th>
                    <th>身份证扫描件</th>
                    <th>户口簿扫描件</th>
                </tr>
            </thead>
            <tbody>
            <volist name="family" id="vo">
                <tr>
                    <td class="tc">{$vo.name} <br />{$vo.gender}&nbsp;{$vo.age}岁</td>
                    <td>{$vo.relation}</td>
                    <td>{$vo.idno}</td>
                    <td>{$vo.phone}</td>
                    <td>{$vo.company}</td>
                    <td>{$vo.marriage}</td>
                    <td>{$vo.income}</td>
                    <td><img class="img-small" style="height:40px;width:70px;" src="{$vo.sfzImg}" /></td>
                    <td><img class="img-small" style="height:40px;width:70px;" src="{$vo.hkbImg}" /></td>
                </tr>
            </volist>
            </tbody>
        </table>
    </div>
    <div class="tabs-item tabs-lhsp hidden">
        <table class="list" style="margin-top:10px;">
            <thead>
            <tr>
                <th width="150">审批单位</th>
                <th>审批意见</th>
                <th width="50">审批人</th>
                <th width="70">审批时间</th>
            </tr>
            </thead>
            <tbody>
            <volist name="lhsp" id="vo">
                <tr <if condition="$vo.spzt eq 未通过">class="warning"</if>>
                    <td>{$vo.spdw}</td>
                    <td>{$vo.spyj|default='未审批'}</td>
                    <td>{$vo.spr}</td>
                    <td>
                        <neq name="vo.sptime" value="">
                            {$vo.sptime|date="Y/m/d",###}
                        </neq>
                    </td>
                </tr>
            </volist>
            </tbody>
        </table>
    </div>
    <div class="tabs-item tabs-log hidden" style="height:270px;overflow-y:auto">
        <table class="list" style="margin-top:10px;">
            <thead>
            <tr>
                <th>审批环节</th>
                <th>审批状态</th>
                <th>审批意见</th>
                <th>审批人</th>
                <th>审批时间</th>
            </tr>
            </thead>
            <tbody>
            <volist name="log" id="vo">
                <tr>
                    <td>{$vo.sphj}</td>
                    <td>{$vo.spzt}</td>
                    <td>{$vo.spyj}</td>
                    <td>{$vo.spr}</td>
                    <td>{$vo.sptime|date="Y-m-d",###}</td>
                </tr>
            </volist>
            </tbody>
        </table>
    </div>
    <div class="tabs-item tabs-history hidden">
        <table class="list" style="margin-top:10px;">
            <thead>
            <tr>
                <th width="100">申请时间</th>
                <th width="120">申请状态</th>
                <th width="100">申请类型</th>
                <th>审批意见</th>
                <th>审批人</th>
                <th>审批时间</th>
            </tr>
            </thead>
            <tbody>

            </tbody>
        </table>
    </div>
    <div class="tabs-item tabs-zj hidden">
        <table class="list" style="margin-top:5px;">
            <thead>
            <tr>
                <th width="16%">身份证正面</th>
                <th width="16%">身份证背面</th>
                <th width="16%">户口簿</th>
                <th width="16%">结婚证</th>
                <th width="16%">离婚证</th>
                <th>单位聘用证明</th>
            </tr>
            </thead>
            <tbody>
            <tr>
                <td>
                    <neq name="zj.sfzzmImg" value="">
                        <img class="img-small" title="点击查看大图" height="60" width="100" src="{$zj.sfzzmImg}" />
                        <else />
                        <img name="sfzzmImg" style="width:120px;height:80px;" class="img-upload" src="__IMG__/index/sfzzm.png" />
                    </neq>
                </td>
                <td>
                    <neq name="zj.sfzbmImg" value="">
                        <img class="img-small" title="点击查看大图" height="60" width="100" src="{$zj.sfzbmImg}" />
                        <else />
                        <img name="sfzbmImg" style="width:120px;height:80px;" class="img-upload" src="__IMG__/index/sfzbm.png" />
                    </neq>
                </td>
                <td>
                    <neq name="zj.hkbImg" value="">
                        <img class="img-small" title="点击查看大图" height="60" width="100" src="{$zj.pyzmImg}" />
                        <else />
                        <img name="hkbImg" style="width:120px;height:80px;" class="img-upload" src="__IMG__/index/hkb.png" />
                    </neq>
                </td>
                <td>
                    <neq name="zj.jhzImg" value="">
                        <img class="img-small" title="点击查看大图" height="60" width="100" src="{$zj.sbImg}" />
                        <else />
                        <img name="jhzImg" style="width:120px;height:80px;" class="img-upload" src="__IMG__/index/jhz.png" />
                    </neq>
                </td>
                <td>
                    <neq name="zj.lhzImg" value="">
                        <img class="img-small" title="点击查看大图" height="60" width="100" src="{$zj.hzyImg}" />
                        <else />
                        <img name="lhzImg" style="width:120px;height:80px;" class="img-upload" src="__IMG__/index/lhz.png" />
                    </neq>
                </td>
                <td>
                    <neq name="zj.pyzmImg" value="">
                        <img class="img-small" title="点击查看大图" height="60" width="100" src="{$zj.pyzmImg}" />
                        <else />
                        <img name="pyzmImg" style="width:120px;height:80px;" class="img-upload" src="__IMG__/index/pyzm.png" />
                    </neq>
                </td>
            </tr>
            </tbody>
        </table>
        <table class="list" style="margin-top:5px;">
            <thead>
            <tr>
                <th width="16%">社保缴纳证明</th>
                <th width="16%">低保证</th>
                <th width="16%">退休证</th>
                <th width="16%">退休金银行流水</th>
                <th width="16%">扶贫建档证明</th>
                <th>特殊人才证明</th>
            </tr>
            </thead>
            <tbody>
            <tr style="border-bottom:0;">
                <td>
                    <neq name="zj.sbImg" value="">
                        <img class="img-small" title="点击查看大图" height="60" width="100" src="{$zj.sbImg}" />
                        <else />
                        <img name="sbImg" style="width:120px;height:80px;" class="img-upload" src="__IMG__/index/sb.png" />
                    </neq>
                </td>
                <td>
                    <neq name="zj.dbzImg" value="">
                        <img class="img-small" title="点击查看大图" height="60" width="100" src="{$zj.dbzImg}" />
                        <else />
                        <img name="dbzImg" style="width:120px;height:80px;" class="img-upload" src="__IMG__/index/dbz2.png" />
                    </neq>
                </td>
                <td>
                    <neq name="zj.txzImg" value="">
                        <img class="img-small" title="点击查看大图" height="60" width="100" src="{$zj.txzImg}" />
                        <else />
                        <img name="txzImg" style="width:120px;height:80px;" class="img-upload" src="__IMG__/index/txz.png" />
                    </neq>
                </td>
                <td>
                    <neq name="zj.yhlsImg" value="">
                        <img class="img-small" title="点击查看大图" height="60" width="100" src="{$zj.yhlsImg}" />
                        <else />
                        <img name="yhlsImg" style="width:120px;height:80px;" class="img-upload" src="__IMG__/index/yhls.png" />
                    </neq>
                </td>
                <td>
                    <neq name="zj.fpzImg" value="">
                        <img class="img-small" title="点击查看大图" height="60" width="100" src="{$zj.fpzImg}" />
                        <else />
                        <img name="fpzImg" style="width:120px;height:80px;" class="img-upload" src="__IMG__/index/fpz.png" />
                    </neq>
                </td>
                <td>
                    <neq name="zj.tsrcImg" value="">
                        <img class="img-small" title="点击查看大图" height="60" width="100" src="{$zj.tsrcImg}" />
                        <else />
                        <img name="tsrcImg" style="width:120px;height:80px;" class="img-upload" src="__IMG__/index/tsrc.png" />
                    </neq>
                </td>
            </tr>
            </tbody>
        </table>
    </div>
</div>
<script src="__JS__/gzf.js?v=0.3" type="text/javascript" ></script>
<script>
    $(".img-small").viewer(); //开启图片查看器功能；
    /**
     * 全局变量 fields
     */
    var fields = new Array("community_id","name", "idno", "phone", "tel", "pay_date1", "pay_date2", "marriage","work_date",
            "applier_type", "gxincome", "ccincome", "income", "gxincome2", "ccincome2", "income2", "remarks",
            "company", "gender", "resident_num", "coapply_num", "work_state", "house_state", "area_id", "pay_shebao");
    var shebaoOptions = {$shebaoOptions};
    var genderOptions = {$genderOptions};
    var workStateOptions = {$workStateOptions};
    var houseStateOptions = {$houseStateOptions};
    var applierTypeOptions = {$applierTypeOptions};
    var areaOptions = {$areaOptions};
    var communityOptions = {$communityOptions};
</script>